package com.example.book.generator.utils;

import java.io.Serializable;

/**
 * Created by an on 2016/9/26.
 */
public class Entity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 字段名称
     */
    private String field;
    /**
     * 类型
     */
    private String type;
    /**
     * 注释
     */
    private String comment;

    private boolean filterOut;

    public Entity(String field, String type, String comment) {
        this.field = field;
        this.type = type;
        this.comment = comment;
        this.filterOut = DataType.isFilterOut(this.field);
    }

    public String getField() {
        return this.field;
    }

    public String getType() {
        return this.type;
    }

    public void setField(String field) {
        this.field = field;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public boolean isFilterOut() {
        return filterOut;
    }

    public void setFilterOut(boolean filterOut) {
        this.filterOut = filterOut;
    }
}
